import os

q_images = os.listdir('/home/tfj/datasets/image_retri10k/eval_images_q')
v_images = os.listdir('/home/tfj/datasets/image_retri10k/eval_images_v')

all_q = []
for q in q_images:
    goods_id = q.split('_')[0]
    all_q.append(goods_id)

all_v = []
for v in v_images:
    goods_id = v.split('_')[0]
    all_v.append(goods_id)


for q in all_q:
    if q not in all_v:
        print(q) # 删除掉对应的q的图片

for v in all_v:
    if v not in all_q:
        print(v) # 删除掉对应的v的图片


# siglip_best_v1.0
# siglip_base_v1.1




